﻿using RBAC.Domain.Service.Interfae;
using RBAC.Repository.Impl;
using RBAC.Repository.Interfae;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.Domain.Service.Impl
{
    public class CountryService:ICountryService
    {
        protected readonly ICountryRepository _countryRepository;
        public CountryService(ICountryRepository countryRepository)
        {
            _countryRepository = countryRepository;
        }
        /// <summary>
        /// 显示所在县
        /// </summary>
        /// <returns></returns>
        public async Task<List<Country>> GetCountries(int Cid)
        {
            return await _countryRepository.GetAsync(d => d.cityId == Cid);
        }
    }
}
